package com.cxb.java.face;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Classname MyUser
 * @Date 2023/9/10 11:32
 * @Created by Administrator
 * @Description TODO
 */
@Data
@NoArgsConstructor
public class MyUser {

    private int age;

    private String name;

    public void modifyName(MyUser myUser) {
        myUser.setName("Frank");
        myUser = new MyUser("CXB");
    }

    public MyUser(String name) {
        this.name = name;
    }

}
